from django.contrib import admin
from .models import AppInfo
# Register your models here.


@admin.register(AppInfo)
class AppInfoConf(admin.ModelAdmin):
    list_display = ['title', 'index_url', 'conf_url', 'top', 'create_time']
    search_fields = ['title',]
    list_filter = ['top',]
    readonly_fields = ['menu_dict', 'conf_url']


# class AppConfConf(admin.ModelAdmin):
#     list_display = ['app', 'conf']
#     readonly_fields = ['conf']


# admin.site.register(AppInfo, AppInfoConf)

